package com.wngbms.feigndemo.config;

import com.wngbms.feigndemo.vo.BaseReq;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Import(BaseReq.class)
@Component
public class ExecutorConfig {

    @Bean
    public ExecutorService proxyExecutor() {
        return Executors.newFixedThreadPool(10);
    }

}
